.class Lcom/kwad/sdk/api/loader/ProducerFactory$ConfigProducer;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/kwad/sdk/api/loader/ProducerFactory$Producer;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/kwad/sdk/api/loader/ProducerFactory;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "ConfigProducer"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/kwad/sdk/api/loader/ProducerFactory$Producer<",
        "Lcom/kwad/sdk/api/loader/Api$Data;",
        ">;"
    }
.end annotation


# instance fields
.field private mUrl:Ljava/lang/String;


# direct methods
.method constructor <init>(Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/kwad/sdk/api/loader/ProducerFactory$ConfigProducer;->mUrl:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public produceResults(Lcom/kwad/sdk/api/loader/ProducerFactory$Consumer;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/kwad/sdk/api/loader/ProducerFactory$Consumer<",
            "Lcom/kwad/sdk/api/loader/Api$Data;",
            ">;)V"
        }
    .end annotation

    :try_start_0
    new-instance v0, Lcom/kwad/sdk/api/loader/ConfigRequest;

    iget-object v1, p0, Lcom/kwad/sdk/api/loader/ProducerFactory$ConfigProducer;->mUrl:Ljava/lang/String;

    invoke-direct {v0, v1}, Lcom/kwad/sdk/api/loader/ConfigRequest;-><init>(Ljava/lang/String;)V

    new-instance v1, Lcom/kwad/sdk/api/loader/ProducerFactory$ConfigProducer$1;

    invoke-direct {v1, p0, p1}, Lcom/kwad/sdk/api/loader/ProducerFactory$ConfigProducer$1;-><init>(Lcom/kwad/sdk/api/loader/ProducerFactory$ConfigProducer;Lcom/kwad/sdk/api/loader/ProducerFactory$Consumer;)V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/api/loader/ConfigRequest;->submit(Lcom/kwad/sdk/api/loader/ConfigRequest$Response;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-interface {p1, v0}, Lcom/kwad/sdk/api/loader/ProducerFactory$Consumer;->onFailure(Ljava/lang/Throwable;)V

    :goto_0
    return-void
.end method
